package com.xxx.car.service.impl;

import com.xxx.car.biz.SmsService;
import com.xxx.car.entity.TbSmsContent;
import com.xxx.car.entity.TbSmsContentExample;
import com.xxx.car.mapper.TbSmsContentMapper;
import com.xxx.car.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by youxiaojia on 2017/6/13.
 */
@Service
public class DemoServiceImpl implements DemoService {
    @Autowired
    SmsService smsService;
    @Autowired
    TbSmsContentMapper tbSmsContentMapper;

    @Override
    public void sendValidCodetToPhone(String phone, int resend, int exp) {
        smsService.sendValidCodetToPhone(phone, resend ,exp);
    }

    @Override
    public List<TbSmsContent> queryTbSmsContentList() {
        TbSmsContentExample tbSmsContentExample = new TbSmsContentExample();
        List<TbSmsContent> tbSmsContentList = tbSmsContentMapper.selectByExample(tbSmsContentExample);
        return tbSmsContentList;
    }


}
